package com.rmb.dataanalysis.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @version 1.0
 * @Author ZhaoMuYang
 * @Date 2021/1/13 22:59
 */
@Entity
@Data
@Table(name = "tb_analysis")
@AllArgsConstructor
@NoArgsConstructor
public class TbAnalysis implements Serializable {
    private static final long serialVersionUID = 639227227239742555L;
    /**
     * 主键
     */
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    /**
     * 执行sql语句
     */
    @Column(name = "execute_sql")
    private String executeSql;
    /**
     * 执行结果
     */
    @Column(name = "execute_result")
    private String executeResult;
    /**
     * 数据源id
     */
    @Column(name = "data_source_id")
    private Long dataSourceId;
    /**
     * 数据库名称
     */
    @Column(name = "data_base_name")
    private String dataBaseName;
    /**
     * 表名称
     */
    @Column(name = "table_name")
    private String tableName;
    /**
     * 创建时间
     */
    @Column(name = "create_time")
    @Temporal(TemporalType.TIMESTAMP)
    private Date createTime;
    /**
     * 更改时间
     */
    @Column(name = "update_time")
    @Temporal(TemporalType.TIMESTAMP)
    private Date updateTime;
    /**
     * 创建人姓名
     */
    @Column(name = "create_name")
    private String createName;
    /**
     * 更改人姓名
     */
    @Column(name = "update_name")
    private String updateName;


}
